package pers.patterns.yang.adapter;

public class PlayerAdapter implements MusicPlayer{
    private Player player;

    public PlayerAdapter(){
        this.player = new Player();
    }

    @Override
    public void play(String type, String filename) {
        if(type.equals("mp3")) this.player.playMp3(filename);
        if(type.equals("wma")) this.player.playWma(filename);
    }
}
